package com.supplychainapi.dao.prod;

import com.supplychainapi.domain.AuthEntity;
import com.supplychainapi.domain.account.AuthProgDtlEntity;
import com.supplychainapi.domain.account.UserRoleEntity;
import com.supplychainapi.domain.account.UserShopEntity;
import com.supplychainapi.model.Tbuser;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;

public interface TbuserMapper extends Mapper<Tbuser> {
    List<AuthProgDtlEntity> findAllAuth();
    List<AuthProgDtlEntity> findUserAuth(@Param("fsShopGUID") String fsShopGUID, @Param("fsUserId") String fsUserId);

    HashMap<String, String> findUserCompanyGUID(@Param("fsShopGUID") String fsShopGUID, @Param("fsUserId") String fsUserId);
    List<UserShopEntity> findUserShopList(@Param("fsShopGUID") String fsShopGUID, @Param("fsUserId") String fsUserId);

    List<UserRoleEntity> findUserRole(@Param("fsShopGUID") String fsShopGUID, @Param("fsUserId") String fsUserId);
}